var alayoutImg=ui("alayoutImg");
var do_Page = sm("do_Page");
var nf = sm("do_Notification");
var openHelper = require("helper/open");
ui("$").setMapping({
	"labelRemark.text" : "remark",
	"labelRemark.tag" : "id",
	"alayoutImg.tag":"bigPathImg",
	"alayoutImg.visible":"isShowImg",
	"imageView.source":"pathImg",
	"imageViewCheck.source" : "source",
	"imageViewCheck.tag" : "isCheck"
});
//图片浏览注册事件
alayoutImg.on("touch", function(data) {
	var jsonImgs=[];
	jsonImgs.push({source:alayoutImg.tag});
	openHelper.open("source://view/reuse/imgBrowser.ui", {
		imgDatas :JSON.stringify(jsonImgs),index:0
	});
})
ui("aLayoutCheck").on("touch", function() {
	var d = {};
	if(ui("imageViewCheck").tag==1){
		return;
	}
	if(ui("imageViewCheck").tag==2){
		d.isCheck = 1;
	}else{
		d.isCheck = 2;
	}
	d.id = ui("labelRemark").tag;
	do_Page.fire("check_radio_change_event", d);
})
